﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SLControlLibrary.Resources.Controls.Calendar.OutlookCalendar.BusinessObjects;

namespace SLControlLibrary.Resources.Controls.Calendar.OutlookCalendar.DataAccess
{
    public class OptionsDataProvider
    {
        public AppointmentList AppointmentList
        {
            get { return (AppointmentList)Application.Current.Resources["AppointmentList"]; }
            set
            {
                if (Application.Current.Resources.Contains("AppointmentList"))
                    Application.Current.Resources.Remove("AppointmentList");

                Application.Current.Resources.Add("AppointmentList", value);
            }
        }

        public AppointmentValueList AppointmentValueList
        {
            get { return (AppointmentValueList)Application.Current.Resources["AppointmentValueList"]; }
            set
            {
                if (Application.Current.Resources.Contains("AppointmentValueList"))
                    Application.Current.Resources.Remove("AppointmentValueList");

                Application.Current.Resources.Add("AppointmentValueList", value);
            }
        }
    }
}
